<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:c="http://java.sun.com/jsp/jstl/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.EditPerfilTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.EditPerfilLabel_nombre}" for="nombre" />
                    <h:inputText id="nombre" value="#{perfilController.selected.nombre}" title="#{bundle.EditPerfilTitle_nombre}" required="true" requiredMessage="#{bundle.EditPerfilRequiredMessage_nombre}"/>
                    <h:outputLabel value="#{bundle.EditPerfilLabel_descripcion}" for="descripcion" />
                    <h:inputText id="descripcion" value="#{perfilController.selected.descripcion}" title="#{bundle.EditPerfilTitle_descripcion}" />
                </h:panelGrid>
 
               
                <br/>
                <br/>

                <c:set var="IsEdit" value="${true}"/>
                <br/>
                <ui:include src="../perfilCompetencia/List.xhtml"/>
                <br/>
               
                
                <div class="navbar">
                    <div class="container">
                      <a href="#menu" class="menu-trigger meteocon" data-meteocon="M" data-toggle="panel" data-target="#menu"></a>
                      <div class="nav-collapse collapse">
                        <nav id="menu">
                          <ul class="nav docs-navbar-menu">
                            <li>
                               <h:commandLink styleClass="btn btn-info" action="#{perfilCompetenciaController.prepareCreate(perfilController.selected.id)}"  value="Asignar competencia"/>                                
                            </li>
                            <li>&nbsp;</li>
                            <li>
                                <h:commandLink styleClass="btn btn-info" action="/perfil/Create"  value="#{bundle.ListPerfilCreateLink}"/>
                            </li>
                            <li>&nbsp;</li>
                            <li><h:commandLink styleClass="btn btn-info" action="#{perfilController.update}" value="#{bundle.EditPerfilSaveLink}"/></li>
                            <li>&nbsp;</li>
                            <li><h:commandLink styleClass="btn btn-info" action="View" value="#{bundle.EditPerfilViewLink}" immediate="true"/></li>
                            <li>&nbsp;</li>
                            <li><h:commandLink styleClass="btn btn-info" action="#{perfilController.prepareList}" value="#{bundle.EditPerfilShowAllLink}" immediate="true"/></li>
                          </ul>
                        </nav>
                      </div>
                    </div>
                </div>



            </h:form>
        </ui:define>
    </ui:composition>

</html>
